package com.opgea.tutor.web.dto;

import com.opgea.tutor.domain.entities.Specialization;
import com.opgea.tutor.domain.interfaces.Marshallable;

public class SpecializationDTO implements Marshallable<Specialization> {

    private long id;
    private String subjectName;
    private String topicName;
    private String moreDescription;
    private String whichStandard;
    private int selfRating;
    private int studentRating;

    public long getId() {
	return id;
    }

    public void setId(long id) {
	this.id = id;
    }

    public String getSubjectName() {
	return subjectName;
    }

    public void setSubjectName(String subjectName) {
	this.subjectName = subjectName;
    }

    public String getTopicName() {
	return topicName;
    }

    public void setTopicName(String topicName) {
	this.topicName = topicName;
    }

    public String getMoreDescription() {
	return moreDescription;
    }

    public void setMoreDescription(String moreDescription) {
	this.moreDescription = moreDescription;
    }

    public String getWhichStandard() {
	return whichStandard;
    }

    public void setWhichStandard(String whichStandard) {
	this.whichStandard = whichStandard;
    }

    public int getSelfRating() {
	return selfRating;
    }

    public void setSelfRating(int selfRating) {
	this.selfRating = selfRating;
    }

    public int getStudentRating() {
	return studentRating;
    }

    public void setStudentRating(int studentRating) {
	this.studentRating = studentRating;
    }

    @Override
    public void marshall(Specialization specialization) {
	this.id = specialization.getId();
	this.subjectName = specialization.getSubjectName();
	this.topicName = specialization.getTopicName();
	this.whichStandard = specialization.getWhichStandard();
	this.moreDescription = specialization.getMoreDescription();
	this.selfRating = specialization.getSelfRating();
	this.studentRating = specialization.getStudentRating();
    }

    @Override
    public Specialization unmarshall(Specialization specialization) {
	specialization.setId(this.id);
	specialization.setSubjectName(this.subjectName);
	specialization.setTopicName(this.topicName);
	specialization.setWhichStandard(this.whichStandard);
	specialization.setMoreDescription(this.moreDescription);
	specialization.setSelfRating(this.selfRating);
	specialization.setStudentRating(studentRating);
	return specialization;
    }

}
